Original: All need to Know about the HTML5 Data AttributeYou must know the Data property of HTML 5Translator: DwqsThe Data property of HTML 5 allows you to customize the information for the element. This article is about thinking about how to better
The property is an attribute in the DOM, an object in JavaScript, an attribute on an HTML tag, and its value can only be a string; many friends are easily confused.analyzing property and attribute based on JavaScriptThere is such a piece of code in
Property and attribute are very easy to confuse, and the Chinese translation of two words is very similar (properties: attributes, Attribute: properties), but in fact, they are different things and belong to different categories.
property
People always like to add custom attributes to the HTML tag to store and manipulate the data. But the problem with this is that you don't know if there will be other scripts that will reset your custom properties in the future, and you'll also cause
Property and attribute are very easy to confuse, and the Chinese translation of two words is very similar (properties: attributes, Attribute: properties), but in fact, they are different things and belong to different categories. Property is an
This article mainly introduces the use of the name attribute of the HTML form tag, and finally the difference between name and ID, which is described in this article as a description of the advantages of the name tag, let's take a look at this
HTML tags can add custom properties to store and manipulate data. However, doing so will result in HTML syntax that does not conform to the HTML specification. A custom Data property is added to the HTML5 specification, and the use of the custom
Difference between Property and Attribute: propertyattribute
Property and attribute are very confusing. the Chinese translation of the two words is also very similar (property: attribute, attribute: feature). However, the two are actually different
Foreword: When using the bootstrap component recently found a usability problem, many simple component initialization need to write a lot of initialization code in JS, such as a simple select tag, because just need to get data from the background to
Use the Data-* property to embed custom data:OwlSalmonTarantulaBrowser supportAll major browsers support the Data-* property.Definition and usageThe Data-* property is used to store custom data that is applied after a private page.The Data-*
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.